package com.gzj.environment.model.system.vo;

import com.gzj.environment.model.system.entity.Resource;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @description:
 * @author: tsing
 * @create: 2021-01-24 18:26
 */
@Data
@NoArgsConstructor
public class ResourceVo extends Resource {
    private List<ResourceVo> children;

    public ResourceVo(Resource resource) {
        BeanUtils.copyProperties(resource, this);
    }

}
